package algorithm.strategy;

import algorithm.PersonAgeDiff;

import java.util.Comparator;
import java.util.List;

/**
 * 计算年龄差策略
 */
public interface IAgeDiffStrategy {
    Comparator<PersonAgeDiff> COMPARING_BY_AGE_DIFF = Comparator.comparing(PersonAgeDiff::getAgeDiff);

    PersonAgeDiff get(List<PersonAgeDiff> ageDiffList);
}
